package mvc.view.components {
	import flash.display.Sprite;
	import flash.text.TextField;
	
	import mx.utils.StringUtil;
	
	import spark.formatters.NumberFormatter;

	public class StartupLoadingSprite extends ViewComponent {
		private var _scene:Sprite;
		public var txtPercent:TextField;

		public function StartupLoadingSprite(sprite:Sprite) {
			super();
			txtPercent = sprite.getChildByName("txt_percent") as TextField;
			setPercent(0);
		}

		public function setPercent(percent:int):void {
			txtPercent.text = percent + "%";
		}
	}
}
